package com.heima.model.common.dtos;

import com.alibaba.fastjson.JSON;
import com.heima.model.common.enums.AppHttpCodeEnum;

public class TestResponse {

    public static void main(String[] args) {

        ResponseResult result = new ResponseResult();
//        ResponseResult ok = result.ok("操作成功");
//        System.out.println(JSON.toJSONString(ok));

        ResponseResult error = result.error(AppHttpCodeEnum.NEED_ADMIND.getCode(), AppHttpCodeEnum.NEED_ADMIND.getErrorMessage());
        System.out.println(JSON.toJSONString(error));


    }

}
